/**
 * Copyright (c) 2018-2022, NXOS Development Team
 * SPDX-License-Identifier: Apache-2.0
 * 
 * Contains: stack backtrace for riscv64 arch
 * 
 * Change Logs:
 * Date           Author            Notes
 * 2022-07-28     JasonHu           Init
 */

#include <base/backtrace.h>
#define NX_LOG_NAME "backtrace"
#include <base/log.h>

/**
 * TODO: aarch64 NX_HalStackBacktrace
 */
NX_PRIVATE NX_Size NX_HalStackBacktrace(void ** buffer, NX_Size size, NX_Addr fp, NX_Addr stackTop)
{
    return 0;
}

NX_INTERFACE struct NX_StackBacktraceOps gStackBacktraceOpsInterface = 
{
    .backtrace      = NX_HalStackBacktrace,
};
